.class Lcom/example/location/SlideShowView$MyPageChangeListener;
.super Ljava/lang/Object;
.source "SlideShowView.java"

# interfaces
.implements Landroid/support/v4/view/ViewPager$OnPageChangeListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/example/location/SlideShowView;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "MyPageChangeListener"
.end annotation


# instance fields
.field isAutoPlay:Z

.field final synthetic this$0:Lcom/example/location/SlideShowView;


# direct methods
.method private constructor <init>(Lcom/example/location/SlideShowView;)V
    .locals 1

    .prologue
    .line 250
    iput-object p1, p0, Lcom/example/location/SlideShowView$MyPageChangeListener;->this$0:Lcom/example/location/SlideShowView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 252
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/example/location/SlideShowView$MyPageChangeListener;->isAutoPlay:Z

    return-void
.end method

.method synthetic constructor <init>(Lcom/example/location/SlideShowView;Lcom/example/location/SlideShowView$MyPageChangeListener;)V
    .locals 0

    .prologue
    .line 250
    invoke-direct {p0, p1}, Lcom/example/location/SlideShowView$MyPageChangeListener;-><init>(Lcom/example/location/SlideShowView;)V

    return-void
.end method


# virtual methods
.method public onPageScrollStateChanged(I)V
    .locals 3
    .param p1, "arg0"    # I

    .prologue
    const/4 v2, 0x0

    .line 256
    packed-switch p1, :pswitch_data_0

    .line 276
    :cond_0
    :goto_0
    return-void

    .line 258
    :pswitch_0
    iput-boolean v2, p0, Lcom/example/location/SlideShowView$MyPageChangeListener;->isAutoPlay:Z

    goto :goto_0

    .line 261
    :pswitch_1
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/example/location/SlideShowView$MyPageChangeListener;->isAutoPlay:Z

    goto :goto_0

    .line 265
    :pswitch_2
    iget-object v0, p0, Lcom/example/location/SlideShowView$MyPageChangeListener;->this$0:Lcom/example/location/SlideShowView;

    # getter for: Lcom/example/location/SlideShowView;->viewPager:Landroid/support/v4/view/ViewPager;
    invoke-static {v0}, Lcom/example/location/SlideShowView;->access$0(Lcom/example/location/SlideShowView;)Landroid/support/v4/view/ViewPager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/view/ViewPager;->getCurrentItem()I

    move-result v0

    iget-object v1, p0, Lcom/example/location/SlideShowView$MyPageChangeListener;->this$0:Lcom/example/location/SlideShowView;

    # getter for: Lcom/example/location/SlideShowView;->viewPager:Landroid/support/v4/view/ViewPager;
    invoke-static {v1}, Lcom/example/location/SlideShowView;->access$0(Lcom/example/location/SlideShowView;)Landroid/support/v4/view/ViewPager;

    move-result-object v1

    invoke-virtual {v1}, Landroid/support/v4/view/ViewPager;->getAdapter()Landroid/support/v4/view/PagerAdapter;

    move-result-object v1

    .line 266
    invoke-virtual {v1}, Landroid/support/v4/view/PagerAdapter;->getCount()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    .line 265
    if-ne v0, v1, :cond_1

    .line 266
    iget-boolean v0, p0, Lcom/example/location/SlideShowView$MyPageChangeListener;->isAutoPlay:Z

    if-nez v0, :cond_1

    .line 267
    iget-object v0, p0, Lcom/example/location/SlideShowView$MyPageChangeListener;->this$0:Lcom/example/location/SlideShowView;

    # getter for: Lcom/example/location/SlideShowView;->viewPager:Landroid/support/v4/view/ViewPager;
    invoke-static {v0}, Lcom/example/location/SlideShowView;->access$0(Lcom/example/location/SlideShowView;)Landroid/support/v4/view/ViewPager;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/support/v4/view/ViewPager;->setCurrentItem(I)V

    goto :goto_0

    .line 270
    :cond_1
    iget-object v0, p0, Lcom/example/location/SlideShowView$MyPageChangeListener;->this$0:Lcom/example/location/SlideShowView;

    # getter for: Lcom/example/location/SlideShowView;->viewPager:Landroid/support/v4/view/ViewPager;
    invoke-static {v0}, Lcom/example/location/SlideShowView;->access$0(Lcom/example/location/SlideShowView;)Landroid/support/v4/view/ViewPager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/view/ViewPager;->getCurrentItem()I

    move-result v0

    if-nez v0, :cond_0

    iget-boolean v0, p0, Lcom/example/location/SlideShowView$MyPageChangeListener;->isAutoPlay:Z

    if-nez v0, :cond_0

    .line 271
    iget-object v0, p0, Lcom/example/location/SlideShowView$MyPageChangeListener;->this$0:Lcom/example/location/SlideShowView;

    # getter for: Lcom/example/location/SlideShowView;->viewPager:Landroid/support/v4/view/ViewPager;
    invoke-static {v0}, Lcom/example/location/SlideShowView;->access$0(Lcom/example/location/SlideShowView;)Landroid/support/v4/view/ViewPager;

    move-result-object v0

    .line 272
    iget-object v1, p0, Lcom/example/location/SlideShowView$MyPageChangeListener;->this$0:Lcom/example/location/SlideShowView;

    # getter for: Lcom/example/location/SlideShowView;->viewPager:Landroid/support/v4/view/ViewPager;
    invoke-static {v1}, Lcom/example/location/SlideShowView;->access$0(Lcom/example/location/SlideShowView;)Landroid/support/v4/view/ViewPager;

    move-result-object v1

    invoke-virtual {v1}, Landroid/support/v4/view/ViewPager;->getAdapter()Landroid/support/v4/view/PagerAdapter;

    move-result-object v1

    invoke-virtual {v1}, Landroid/support/v4/view/PagerAdapter;->getCount()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setCurrentItem(I)V

    goto :goto_0

    .line 256
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_2
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public onPageScrolled(IFI)V
    .locals 0
    .param p1, "arg0"    # I
    .param p2, "arg1"    # F
    .param p3, "arg2"    # I

    .prologue
    .line 281
    return-void
.end method

.method public onPageSelected(I)V
    .locals 3
    .param p1, "pos"    # I

    .prologue
    .line 286
    iget-object v1, p0, Lcom/example/location/SlideShowView$MyPageChangeListener;->this$0:Lcom/example/location/SlideShowView;

    invoke-static {v1, p1}, Lcom/example/location/SlideShowView;->access$3(Lcom/example/location/SlideShowView;I)V

    .line 287
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    iget-object v1, p0, Lcom/example/location/SlideShowView$MyPageChangeListener;->this$0:Lcom/example/location/SlideShowView;

    # getter for: Lcom/example/location/SlideShowView;->dotViewsList:Ljava/util/List;
    invoke-static {v1}, Lcom/example/location/SlideShowView;->access$4(Lcom/example/location/SlideShowView;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lt v0, v1, :cond_0

    .line 296
    return-void

    .line 288
    :cond_0
    if-ne v0, p1, :cond_1

    .line 289
    iget-object v1, p0, Lcom/example/location/SlideShowView$MyPageChangeListener;->this$0:Lcom/example/location/SlideShowView;

    # getter for: Lcom/example/location/SlideShowView;->dotViewsList:Ljava/util/List;
    invoke-static {v1}, Lcom/example/location/SlideShowView;->access$4(Lcom/example/location/SlideShowView;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/view/View;

    .line 290
    const v2, 0x7f02004f

    invoke-virtual {v1, v2}, Landroid/view/View;->setBackgroundResource(I)V

    .line 287
    :goto_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 292
    :cond_1
    iget-object v1, p0, Lcom/example/location/SlideShowView$MyPageChangeListener;->this$0:Lcom/example/location/SlideShowView;

    # getter for: Lcom/example/location/SlideShowView;->dotViewsList:Ljava/util/List;
    invoke-static {v1}, Lcom/example/location/SlideShowView;->access$4(Lcom/example/location/SlideShowView;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/view/View;

    .line 293
    const v2, 0x7f020050

    invoke-virtual {v1, v2}, Landroid/view/View;->setBackgroundResource(I)V

    goto :goto_1
.end method
